/////////////////////////////////////////////////////////////////////////////
// Name:        dgtBE_App.cpp
// Purpose:     
// Author:      Aleksey Plotnikov
// Modified by: 
// Created:     10/01/2009 19:29:25
// RCS-ID:      
// Copyright:   
// Licence:     
/////////////////////////////////////////////////////////////////////////////

// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

////@begin includes
////@end includes

#include "dgtBE_App.h"
#include "dgtBE_MainFrame.h"

////@begin XPM images

////@end XPM images


/*!
 * Application instance implementation
 */

////@begin implement app
IMPLEMENT_APP( dgtBE_App )
////@end implement app


/*!
 * dgtBE_App type definition
 */

IMPLEMENT_CLASS( dgtBE_App, wxApp )


/*!
 * dgtBE_App event table definition
 */

BEGIN_EVENT_TABLE( dgtBE_App, wxApp )

////@begin dgtBE_App event table entries
////@end dgtBE_App event table entries

END_EVENT_TABLE()


/*!
 * Constructor for dgtBE_App
 */

dgtBE_App::dgtBE_App()
{
    Init();
}


/*!
 * Member initialisation
 */

void dgtBE_App::Init()
{
////@begin dgtBE_App member initialisation
////@end dgtBE_App member initialisation
}

/*!
 * Initialisation for dgtBE_App
 */

bool dgtBE_App::OnInit()
{    
////@begin dgtBE_App initialisation
    // Remove the comment markers above and below this block
    // to make permanent changes to the code.

#if wxUSE_XPM
    wxImage::AddHandler(new wxXPMHandler);
#endif
#if wxUSE_LIBPNG
    wxImage::AddHandler(new wxPNGHandler);
#endif
#if wxUSE_LIBJPEG
    wxImage::AddHandler(new wxJPEGHandler);
#endif
#if wxUSE_GIF
    wxImage::AddHandler(new wxGIFHandler);
#endif
////@end dgtBE_App initialisation

	dgtBE_MainFrame *p_Dlg = new dgtBE_MainFrame( NULL );
	p_Dlg->Show();

    return true;
}


/*!
 * Cleanup for dgtBE_App
 */

int dgtBE_App::OnExit()
{    
////@begin dgtBE_App cleanup
    return wxApp::OnExit();
////@end dgtBE_App cleanup
}

